<template>

  <div class="px-[16px] py-[16px] mt-[8px] bg-[var(--base-color)] rounded-[8px]">
    <FormTitle title="文件信息" />
    <Upload label="合同文件" v-model="files" :limit="10"> </Upload>
  </div>
</template>

<script setup lang="jsx">
import FormTitle from "@/components/Form/FormTitle.vue";
import Upload from "@/components/Upload/index.vue";
const props = defineProps({
  modelValue: {
    type: Array,
    default: () => [],
  },
});
const emits = defineEmits(["update:modelValue"]);
const files = computed({
  get() {
    return props?.modelValue || [];
  },
  set(value) {
    emits("update:modelValue", value);
  },
});
</script>
